{include file="header.html"}
<div class="title tc ml-30 mr-10">
	<h2>客户售后走访信息录入</h2>
</div>
<div class="content px-20">
<form name="myForm" id="myForm" action="/index.php?act=interview&st=presalesSave" method="post">
	<section id="step1">
		<table class="my-10">
		    <tbody>
		        <tr>
		            <td class="pl-15 tr">走访单位名称: </td><td class="pl-15"><input id="visit_unit" name="visit_unit" type="text"/><br/><font color='red' id='td_visit_unit'></font></td>
		        </tr>
		        <tr>
		            <td class="pl-15 tr">用户详细地址: </td><td class="pl-15"><input id="visit_addr" name="visit_addr" type="text"/><br/><font color='red' id='td_visit_addr'></font></td>
		        </tr>
		        <tr>
		            <td class="pl-15 tr">接待人姓名:</td><td class="pl-15"><input id="recevie_name" name="recevie_name" type="text" /><br/><font color='red' id='td_recevie_name'></font></td>
		        </tr>
		        <tr>
		            <td class="pl-15 tr">接待人职务:</td><td class="pl-15"><input id="recevie_study" name="recevie_study" type="text"/></td>
		        </tr>
		        <tr>
		            <td class="pl-15 tr">接待人电话:</td><td class="pl-15"><input id="recevie_mobile" name="recevie_mobile" type="tel" /></td>
		        </tr>
		        <tr>
		            <td class="pl-15 tr">接待人邮箱:</td><td class="pl-15"><input id="recevie_email" name="recevie_email" type="email" /></td>
		        </tr>
		        <tr>
		            <td class="pl-15 tr">用户概况:</td>
		            <td class="pl-15">
		              <textarea id="recevie_facts" name="recevie_facts"></textarea>
					</td>
		        </tr>
		        <tr>
		            <td class="pl-15 tr">反馈问题:</td>
		            <td class="pl-15">
		              <textarea id="recevie_question" name="recevie_question"></textarea>
		              <br/><font color='red' id='td_recevie_question'></font>
					</td>
		        </tr>
		        <tr>
		            <td class="pl-15 tr">需求信息:</td>
		            <td class="pl-15">
		              <textarea id="recevice_mind" name="recevice_mind"></textarea>
		              <br/><font color='red' id='td_recevice_mind'></font>
					</td>
		        </tr>
		    </tbody>
		</table>
		<p class="tc mt-30"><span id="btn_submit" class="btn w-150" style="display:inline-block"> 提 交  </span></p>
	</section>	
</form>
</div>
<script type="text/javascript">
$(function(){
	$("#btn_submit").tap(function(){
		var visit_unit = $.trim($("#visit_unit").val());
		var visit_addr = $.trim($("#visit_addr").val());
		var recevie_name = $.trim($("#recevie_name").val());		
		var errCount = 0;
		var errMsg = '';
		if(visit_unit == '') {
			errMsg = "请输入走访单位名称！";
			$("#td_visit_unit").html(errMsg).show();;
			errCount = errCount+1;
		}
		if(visit_addr == '') {
			errMsg = "请输入用户详细地址！";
			$("#td_visit_addr").html(errMsg).show();;
			errCount = errCount+1;
		}
		if(recevie_name == '') {
			errMsg = "请输入接待人姓名！";
			$("#td_recevie_name").html(errMsg).show();;
			errCount = errCount+1;
		}
				
		if(errCount == 0) {
			$("#myForm").submit();
		} else {
			return false;
		}		
	});
	$("input,textarea").change(function(){
		var obj = $(this).attr("id");
		var objVal = $.trim($("#"+obj).val());
		if(objVal != '') {
			$("#td_"+obj).hide();
		}
	});
});
</script>
{include file="footer.html"}